package uiux4;

public class BeanSum 
{
	public BeanSum()
	{
	}
	public int Sum(int a, int b)
	{
		int sum=0;
		
		if(a>b)
		{
			int i = a;
			a = b;
			b = i;
		}
		for(;a<=b; a++)
		{
			sum += a;
		}
		return sum;
	}
}
